#######################################################
####  __  __      _        __  __                  ####
#### |  \/  |__ _(_)_ _   |  \/  |___ _ _ _  _     ####
#### | |\/| / _` | | ' \  | |\/| / -_) ' \ || |    ####
#### |_|  |_\__,_|_|_||_| |_|  |_\___|_||_\_,_|    ####
####                                               ####
#######################################################

#imports
#core
import sys; #system utilities, needed to exit normally

#other files
import ..utils; #the utility defs
from ..basichelp import basichelp; #the basic help
from ..places.special.gamestart import gamestart; #the game starting script

#main menu
default mainmenu():
	#todo make this _fancier_
	print("""
Main Menu
=========
What would you like to do?
(type the word in the '<>' signs and then press enter)
<new>	| Start a new game
<load>	| Load a game
<help>	| View the basic help
<exit>	| Exit
""");
	cmds = "new load help exit"; #the possible inputs from the user, separated by spaces
	
	while True:
		command = utils.getinput(); #get the user's decision
		if(command in cmds):
			#the command was recognised, perform the appropriate action
			if(commmand == "exit"):
				if(utils.confirm()):
					print("Goodbye!");
					sys.exit();
			elif(command == "new"):
				gamestart(); #start a new game
			elif(command == "load"):
				#todo implement a saving / loading system
				print("Coming soon....!");
			elif(command == "help"):
				basichelp(); #show the basic help